﻿using MsgExample;
using PENet;
using System;
using System.Collections.Generic;
using System.Text;

namespace ClientExample
{
    class ClientSession : KCPSession<NetMsg>
    {
        protected override void OnConnected()
        {
        }

        protected override void OnDisConnected()
        {
        }

        protected override void OnReciveMsg(NetMsg msg)
        {
            KCPTool.Log($"Sid:{m_sid},Recive:{(msg.cmd == CMD.NetPing ? "NetPing" : msg.info)}");
        }

        protected override void OnUpdate(DateTime now)
        {
        }
    }
}
